GXX = g++ 

VPATH = poker \
				cardType \
				rate

override CXXFLAGS += $(patsubst %,-I%,$(subst :, ,$(VPATH))) 

objects := $(patsubst %.cpp,%.o,$(wildcard *.cpp $(patsubst %,%/*.cpp,$(subst :, ,$(VPATH)))))

TexasHoldm : $(objects)
		$(GXX) -o $@  $^

.PHONY : clean

clean : 
	rm TexasHoldm $(objects) 
